#!/bin/bash

#The shell script is used for stop the server

ps -u `whoami` | grep server | awk -F" " '{ print $1 }' | xargs kill 2>/dev/null

if [ $? = 0 ];then
    echo "Stop server successfully!"
else
    echo "No server is running!"
fi



